package com.xxh.basecrudframework.common;


/**
 * 统一的状态码定义
 **/
public enum ResultCode {


 SUCCESS("200", "成功!"),

 BODY_NOT_MATCH("400","请求错误"),
 SIGNATURE_NOT_MATCH("401","请求的数字签名不匹配!"),
 NOT_FOUND("404", "未找到该资源"),

 INTERNAL_SERVER_ERROR("500", "服务器错误"),
 PARAMETER_EXCEPTION("501", "请求参数校验异常"),
 SERVER_BUSY("503","服务器正忙，请稍后再试!"),


 /* 业务状态码 */
 USER_NOT_EXIST_ERROR("10001", "用户不存在"),
 ;

 private String code;
 private String msg;




ResultCode(String code, String msg) {
  this.code = code;
  this.msg = msg;
 }

 public String getCode() {
  return code;
 }

 public void setCode(String code) {
  this.code = code;
 }

 public String getMsg() {
  return msg;
 }

 public void setMsg(String msg) {
  this.msg = msg;
 }
}